import request from '@/utils/request'

// 查询班级分页数据
export const getClazzList = (params) => request.get('/clazzs', { params })

// 根据id查询班级
export const getClazzById = (id) => request.get(`/clazzs/${id}`)

// 新增班级
export const addClazz = (data) => request.post('/clazzs', data)

// 修改班级
export const updateClazz = (data) => request.put('/clazzs', data)

// 删除班级
export const deleteClazz = (id) => request.delete(`/clazzs/${id}`)

// 获取班级列表
export const getAllClazz = () => request.get('/clazzs/list')